


def get_mobile(phone):
    url = f'https://www.haoshudi.com/{phone}.htm'
    import requests
    from lxml import etree

    headers = {
        'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36'}

    resp = requests.get(url, headers=headers)
    resp.encoding = 'utf-8'

    e = etree.HTML(resp.text)

    # 提取数据
    datas = e.xpath('//tr/td[2]/span/a/text()')
    print(datas)


get_mobile(13697351019)
